<!--
 * @Author: your name
 * @Date: 2022-03-01 20:02:32
 * @LastEditTime: 2022-03-03 08:14:51
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \vue\myapp\src\views\homePage.vue
-->
<template>
  <div>
    <header>
      <h1>大数据可视化</h1>
    </header>
    <section class="container">
      <section class="itemLeft">
        <ItemPage>
          <ItemOne />
        </ItemPage>
        <ItemPage>
          <ItemTwo />
        </ItemPage>
      </section>
      <section class="itemCenter">
        <MapPage/>
      </section>
      <section class="itemRight">
        <ItemPage>
          <ItemThree />
        </ItemPage>
        <ItemPage>
          <ItemFour />
        </ItemPage>
      </section>
    </section>
  </div>
</template>

<script >
import ItemPage from '../components/itemPage.vue'
import ItemOne from '../components/itemOne.vue'
import ItemTwo from '../components/itemTwo.vue'
import ItemThree from '../components/itemThree.vue'
import ItemFour from '../components/itemFour.vue'
import MapPage from '../components/mapPage.vue'
import { inject} from 'vue'
export default {
  components: {
    ItemPage,
    ItemOne,
    ItemTwo,
    ItemThree,
    ItemFour,
    MapPage
  },
  setup() {
    let $echarts= inject('echarts')
    let $http =inject('axios')
    console.log($echarts);
    console.log($http);
  }
}
</script>

<style lang='less'>
header {
  height: 1rem;
  width: 100%;
  background-color: rgba(0, 0, 255, 0.2);
  h1 {
    font-size: 0.375rem;
    color: #fff;
    text-align: center;
    line-height: 1rem;
  }
}
.container {
  min-width: 1200px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0.125rem 0.125rem 00;
  display: flex;
  .itemLeft,
  .itemRight {
    flex: 3;
  }
  .itemCenter {
    flex: 5;
    height: 10.5rem;
    border: 1px solid blue;
    padding: 0.125rem;
    margin: 0.25rem;
  }
}
</style>